@inherits BlazorApp.Pages.Common.PageBase

@if (MenuMode == MenuMode.Vertical)
{
    <Dropdown >
        <Overlay >
            <Menu >
                <MenuItem OnClick="@(() => OnYamlClick(Item))">Yaml</MenuItem>
                <MenuItem >
                    <Popconfirm Title=@L["Delete"]
                                OnConfirm="@(() => OnDeleteClick(Item))"
                                OkText="Yes"
                                CancelText="No">
                        @L["Delete"]
                    </Popconfirm>
                </MenuItem>
            </Menu>
        </Overlay>
        <ChildContent>
            <Button>操作 <Icon Type="down"/></Button>
        </ChildContent>
    </Dropdown>
}
@if (MenuMode == MenuMode.Horizontal)
{
    <Alert Type="@AlertType.Success">
        <Button OnClick="@(() => OnYamlClick(Item))">Yaml</Button>
    </Alert>
}
